package basic;

public class ArrayDemo5 {
    public static void main(String[] args) {
        int[] arr = {1,2,3,4,5};
        for (int i = 0; i < arr.length; i++){
            System.out.println("索引位置" + i + "的元素为：" + arr[i]);
        }
    }
}
